import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter/cupertino.dart';

/// 普通文本组件
  Text TextWidget(
    title, //文本
    TextStyle textStyle, // 文本样式
    {TextAlign? textAlign, //文本对齐方式
    int? maxLines, //最大行数
    double letterSpacing = 0, //字母间距
    double height = 2.6, //行高
    TextOverflow? overflow = TextOverflow.ellipsis,
    softWrap = false, //是否换行
    List<Shadow>? shadow, //文本的阴影
    TextDecoration decoration = TextDecoration.none //文字的线性装饰
    } //文本颜色
    ) {
  return Text(
    title,
    maxLines: maxLines,
    textAlign: textAlign,
    softWrap: softWrap,
    style: textStyle.copyWith(
        letterSpacing: letterSpacing,
        overflow: overflow,
        shadows: shadow,
        decoration: decoration),
  );
}
